#define _CRT_SECURE_NO_WARNINGS 1
#include"Snake.h"

void test()
{
	int ch;
	do
	{
		system("cls");
		Game game;
		GameInit(&game);
		ConsoleInit();
		ShowInitialScreen();
		SetGame(&game);
		setpos(10, 11);
		printf("按Enter重新开始, 输入其他结束游戏");
        ch= getchar();
	} while (ch == '\n');
	setpos(0, 26);
	system("exit");
}

int main()
{


	srand((unsigned int)time(NULL));
	setlocale(LC_ALL, "");
	test();
	return 0;
}